home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / monkey_t.swf / scripts / frame_405 / DoAction.as
Text File  |  2010-11-09  |  2KB  |  59 lines

  1. function player(turn, turned, move, move2, accel, accelplus, accelrev, status1, status2, keyright, keyleft, keyforward, keybackward, bounce, stopbounce)
  2. {
  3.    this.turn = turn;
  4.    this.turned = turned;
  5.    this.move = move;
  6.    this.move2 = move2;
  7.    this.accel = accel;
  8.    this.accelplus = accelplus;
  9.    this.accelrev = accelrev;
  10.    this.status1 = status1;
  11.    this.status2 = status2;
  12.    this.keyright = keyright;
  13.    this.keyleft = keyleft;
  14.    this.keyforward = keyforward;
  15.    this.keybackward = keybackward;
  16.    this.bounce = bounce;
  17.    this.stopbounce = stopbounce;
  18. }
  19. function point(x, y)
  20. {
  21.    this.x = x;
  22.    this.y = y;
  23. }
  24. function pointTarget(pos, x, y, screen, picked)
  25. {
  26.    this.pos = pos;
  27.    this.x = x;
  28.    this.y = y;
  29.    this.screen = screen;
  30.    this.picked = picked;
  31. }
  32. function pointCross(x, y, dir)
  33. {
  34.    this.x = x;
  35.    this.y = y;
  36.    this.dir = dir;
  37. }
  38. function pointAlienStart(x, y, initDir)
  39. {
  40.    this.x = x;
  41.    this.y = y;
  42.    this.initDir = initDir;
  43. }
  44. gotoAndStop("start");
  45. pickupSound = new Sound(pickupSoundMC);
  46. alienSound = new Sound(alienSoundMC);
  47. explosionSound = new Sound(explosionSoundMC);
  48. musicSound = new Sound(musicMC);
  49. wellDoneSound = new Sound(wellDoneMC);
  50. pickupSound.attachSound("pickupSND");
  51. alienSound.attachSound("sirenStartSND");
  52. explosionSound.attachSound("skidSND");
  53. musicSound.attachSound("musicSND");
  54. wellDoneSound.attachSound("wellDoneSND");
  55. mcHST.loadMovie("MonkeyTaxi_HST.swf");
  56. _root.attachMovie("mcPepsiLogo","mcPepsiLogo",99999);
  57. mcPepsiLogo._x = 604;
  58. mcPepsiLogo._y = 494;
  59.